package com.tiantian.app;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.util.StringUtils;

/**
 * 应用的配置
 *
 * @author wangkai
 * @since 2020/3/30.
 */
@Data
@ConfigurationProperties(prefix = "app")
public class AppProperties {
    @Value("${app.id:}")
    private String id;
    @Value("${app.name:}")
    private String name;
    @Value("${spring.application.name:}")
    private String code;
    @Value("${server.servlet.context-path:}")
    private String context;
    @Value("${app.ip:}")
    private String ip;
    @Value("${server.port:}")
    private String port;

    @Value("${app.config.page-title:novel项目}")
    private String pageTitle;
    @Value("${app.config.copyright:Copyright 2020 0719.cn. All Rights Reserved}")
    private String copyright;


}
